package com.sm.service;

import java.util.List;

import com.sm.model.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sm.dao.BannerMapper;

/**
 *	轮播图service层
 * @author 60915
 */
@Service
public class BannerService {
	
	@Autowired
	private BannerMapper bannerMapper;
	/**
	 *	查询轮播图
	 * @return
	 */
	public List<Banner> selectBannerPic(Integer type) {
		
		//查询所有的轮播图
		List<Banner> banners = bannerMapper.selectBanner(type);
		
		return banners;
	}

}
